<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>添加模型</title>
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />

<link rel="stylesheet" type="text/css" href="$request.getContextPath()/resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="$request.getContextPath()/resources/bootstrap-table/css/bootstrap-table.min.css">
<link href="$request.getContextPath()/resources/bootstrap3-editable/css/bootstrap-editable.css" rel="stylesheet">
<link rel="stylesheet" href="$request.getContextPath()/resources/cws/system/export/add.css" />
</head>
<body>
	<div class="container-fluid">
		<form class="form-horizontal" role="form">
			<div class="form-group">
				<label class="col-sm-1 control-label">选择模型</label>
				<div class="col-sm-4">
					<select id="tablesSelect" class="form-control selectpicker">
					     #foreach($table in $tables)
						     <option value="$!table.tableName">$!table.tableName</option>
					     #end
					</select>
				</div>
			</div>
		</form>
		<table id="table" data-toggle="table" data-click-to-select="true" data-url="$request.getContextPath()/system/export/select" data-query-params="queryParams">
			<thead>
				<tr>
					<th data-field="state" data-checkbox="true"
						data-formatter="stateFormatter"></th>
					<th data-field="fieldName">字段</th>
					<th data-field="remarks" data-editable="true">注释</th>
					<th data-field="fieldType">类型</th>
					<th data-field="fieldSize">长度</th>
				</tr>
			</thead>
		</table>
		<div align="center" class="saveButton">
       	   <button type="button" onclick="saveExportModel()" class="btn btn-lg">保存</button>
       </div>
	</div>
</body>
<script src="$request.getContextPath()/resources/jquery/jquery-3.1.0.min.js"></script>
<script src="$request.getContextPath()/resources/bootstrap/js/bootstrap.min.js"></script>

<script type="text/javascript" src="$request.getContextPath()/resources/bootstrap-table/js/bootstrap-table.min.js"></script>
<script type="text/javascript" src="$request.getContextPath()/resources/bootstrap-table/js/bootstrap-table-editable.js"></script>
<script type="text/javascript" src="$request.getContextPath()/resources/bootstrap3-editable/js/bootstrap-editable.min.js"></script>
<script type="text/javascript" src="$request.getContextPath()/resources/bootstrap-table/js/bootstrap-table-zh-CN.min.js"></script>

<script type="text/javascript" src="$request.getContextPath()/resources/cws/system/export/add.js"></script>
</html>